package main

import (
	"github.com/gin-gonic/gin"
	"os"
)

func main() {
	r := gin.Default()
	gin.SetMode(gin.ReleaseMode)
	h ,_ := os.Hostname()
	r.GET("/", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"hostname": h,
			"version":"v5",
		})
	})
	r.Run(":12306") // listen and serve on 0.0.0.0:8080
}
